<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>问答列表</title>
<link rel="stylesheet" type="text/css" href="static/style/base.css">
<script language="javascript" src="static/js/dedeajax2.js"></script>
<script language="javascript" src="static/js/ieemu.js"></script>
<script language="javascript" src="static/js/context_menu.js"></script>
<script language="javascript" src="static/js/main.js"></script>
<script language="javascript" src="static/js/list.js"></script>
<script type="text/javascript">
function isDelete(id){
  var t = confirm("确认删除记录 " + id);
  if(t){
    location.href = "?wenda&ct=wenda&ac=wenda_delete&id=" + id;
  }
}
</script>
</head>
<body leftmargin="8" topmargin="8" background='static/images/allbg.gif' onLoad="ContextMenu.intializeContextMenu()">

<!--  内容列表   -->
<form name="form2">
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#CFCFCF" align="center" style="margin-top:8px">
<tr bgcolor="#E7E7E7" >
    <td height="28" colspan="10" background="static/images/tbg.gif" style="padding-left:10px;">
    ◆ 问答列表
    <span style="float: right;margin-right:20px">[<a href="admin.php?ct=wenda&ac=wenda_add">添加问答</a>][<a href="index.php?ct=index" target="_blank">预览</a>]</span>
    </td>
</tr>
<tr align="center" bgcolor="#FBFCE2" height="25">
    <td width="8%">ID</td>
    <td width="36%">标题</td>
    <td width="8%">置顶</td>
    <td width="8%">精彩</td>
    <td width="16%">添加时间</td>
    <td width="16%">更新时间</td>
    <td width="10%">操作</td>
</tr>
{dede:datalist}
<tr align='center' bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
    <td nowrap>{dede:field.id/}</td>
    <td>{dede:field.title/}</td>
    <td>{dede:field.isTop/}</td>
    <td>{dede:field.isGood/}</td>
    <td>{dede:field.addTime/}</td>
    <td>{dede:field.updateTime/}</td>
    <td>
        <!-- <a href="?wenda&ct=wenda&ac=wenda_delete&id={dede:field.id/}"><img src='static/images/trun.gif' onclick="isDelete();return false;" title="删除" onclick="return isDelete();" alt="删除"  style='cursor:pointer' border='0' width='16' height='16' /></a> -->
        <a href="#"><img src='static/images/trun.gif' onclick="isDelete({dede:field.id/});return false;" title="删除" onclick="return isDelete();" alt="删除"  style='cursor:pointer' border='0' width='16' height='16' /></a>
        <a href="?wenda&ct=wenda&ac=wenda_edit&id={dede:field.id/}"><img src='static/images/gtk-edit.png' title="编辑" alt="编辑"  style='cursor:pointer' border='0' width='16' height='16' /></a>
    </td>
</tr>
{/dede:datalist}
<!-- <tr bgcolor="#ffffff">
<td height="36" colspan="10">
    &nbsp;
    <a href="javascript:selAll()" class="coolbg">全选</a>
    <a href="javascript:noSelAll()" class="coolbg">取消</a>
    <a href="javascript:updateArc(0)" class="coolbg">&nbsp;更新&nbsp;</a>
    <a href="javascript:checkArc(0)" class="coolbg">&nbsp;审核&nbsp;</a>
    <a href="javascript:adArc(0)" class="coolbg">&nbsp;推荐&nbsp;</a>
    <a href="javascript:;" onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid); ?>)" class="coolbg">&nbsp;移动&nbsp;</a>
    <a href="javascript:delArc(0)" class="coolbg">&nbsp;删除&nbsp;</a>
    <?php if($channelid==1) echo "  <a href=\"javascript:kwArc(0)\" class=\"coolbg\">&nbsp;自动关键字&nbsp;</a>\r\n"; ?>
    <a href="javascript:;" onClick="cAtts('attsAdd',event,this)" class="coolbg">&nbsp;增加属性&nbsp;</a>
    <a href="javascript:;" onClick="cAtts('attsDel',event,this)" class="coolbg">&nbsp;删除属性&nbsp;</a>
</td>
</tr> -->
</form>
<tr align="right" bgcolor="#F9FCEF">
    <td height="36" colspan="10" align="center">
        {dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}
        <!-- {dede:pagelist /} -->
    </td>
</tr>
</table>

<!--  搜索表单  -->
<form name='form3' action='admin.php' method='get'>
<input type='hidden' name='ct' value='wenda' />
<input type='hidden' name='search' value='search' />
<table width='98%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#cfcfcf' align="center" style="margin-top:8px">
  <tr bgcolor='#EEF4EA'>
    <td background='static/images/wbg.gif' align='center'>
      <table border='0' cellpadding='0' cellspacing='0' height="32">
        <tr>
        <td nowrap>
          关键字：
        </td>
        <td width='150'>
            <input type='text' name='keyword' value='' style='width:120px' />
        </td>
        <td width='100'>
            <select name='order' style='width:80px'>
            <option value=''>排序...</option>
            <option value='addTime'>添加时间</option>
            <option value='updateTime'>更新时间</option>
        </select>
      </td>
      <td width='90'>
            <select name='attribution' style='width:80px'>
            <option value=''>属性...</option>
            <option value='isTop'>置顶</option>
            <option value='isGood'>精彩</option>
        </select>
      </td>
       <td>
          <input name="imageField" type="image" src="static/images/button_search.gif" width="60" height="22" border="0" class="np" />
       </td>
      </tr>
     </table>
   </td>
  </tr>
</table>
</form>

</body>
</html>